package en.edu.lzzy.s05mvcemployee.service;
import java.util.List;
import en.edu.lzzy.s05mvcemployee.model.Employee;
import org.springframework.data.domain.Page;

public interface EmployeeService {

    //获取所有的员工
    List < Employee > getAllEmployees();

    //新增/更新一个员工
    void saveEmployee(Employee employee);


    //获取指定ID的员工
    Employee getEmployeeById(long id);

    //删除指定ID的员工
    void deleteEmployeeById(long id);

    //分页
    Page<Employee> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);
}
